"""
@author RansySun
@create 2019-12-05-23:01
"""
from alipay import AliPay
from .setting import *

# 阿里支付接口
alipay = AliPay(
    appid=APP_ID,
    app_notify_url=None,  # 该通知接口一般都设置None
    # 应用私钥
    app_private_key_string=APP_PRIVATE_KEY_STRING,
    # 阿里pay公钥
    alipay_public_key_string=ALIPAY_PUBLIC_KEY_STRING,
    # 签名算法，采用RSA2
    sign_type=SIGN_TYPES,  # RSA or RSA2
    # 是否是沙箱环境
    debug=DEBUG
)
